package shelly.test;

/**
 * @author: Shelly
 * @create: 2023-03-09 01:01:03
 * @version: 1.0
 * @describe: 异常
 */
public class ExceptionTest8 {
    public static void main(String[] args) {
        String res = test();
    }
    public static String test(){
        String res = "0";
        try {
            int a=1,b=0,c;
            c=a/b;
            res="1";
            return res!=null?res=res+"0":res;
        } catch (Exception e) {
            System.out.println(res);
            e.printStackTrace();
            res="2";
            return res!=null?res=res+"0":res;
        } finally {
            System.out.println(res);
            res="3";
            return res!=null?res=res+"0":res;
        }
    }
}
